package com.bnlr.lrparking.appui.mine.record;

import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.bnlr.lrparking.R;
import com.bnlr.lrparking.base.BaseActivity;

/**
 * 消费记录
 *
 * @author hp
 * @date 2017/8/23
 */

public class RecordActivity extends BaseActivity {

    private TextView tvNavTitle;
    private RelativeLayout stall_recodr,invest_recodr,else_recodr;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_record);
        initView();
    }

    private void initView(){
        tvNavTitle=(TextView)findViewById(R.id.tv_nav_title);
        tvNavTitle.setText("记录");
        stall_recodr=(RelativeLayout)findViewById(R.id.stall_recodr);
        invest_recodr=(RelativeLayout)findViewById(R.id.invest_recodr);
        else_recodr=(RelativeLayout)findViewById(R.id.else_recodr);

        stall_recodr.setOnClickListener(this);
        invest_recodr.setOnClickListener(this);
        else_recodr.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.stall_recodr:   // 停车记录
                startActivity(ParkingRecordActivity.class);
                break;
            case R.id.invest_recodr:  // 投资记录
                startActivity(InvestRecordActivity.class);
                break;
            case R.id.else_recodr:    // 订单记录
                startActivity(OrderListActivity.class);
                break;
        }
    }
}
